var app = getApp();
var util=require('../../utils/util.js');
var searchdetailData={
    pageId:0,
    "history":["天河城","体育西","江南西","客村","赤岗","体育中心","公园前","东山口","酒吧"],
    "searchContent":[
                {
                    "objId":6001,
                    "src":"../../images/1.jpg",
                    "text":"6江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-2.jpg",
                    "support":1289
                },
                {
                    "objId":5001,
                    "src":"../../images/2.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-4.jpg",
                    "support":1289
                },
                {
                    "objId":3001,
                    "src":"../../images/1.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-3.jpg",
                    "support":1289
                },
                {
                    "objId":3001,
                    "src":"../../images/3.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-1.jpg",
                    "support":1289
                },
                {
                    "objId":4001,
                    "src":"../../images/1.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-2.jpg",
                    "support":1289
                },
                {
                    "objId":5001,
                    "src":"../../images/2.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-1.jpg",
                    "support":1289
                },
                {
                    "objId":6001,
                    "src":"../../images/4.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-5.jpg",
                    "support":1289
                },
                {
                    "objId":1001,
                    "src":"../../images/5.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-1.jpg",
                    "support":1289
                },
                {
                    "objId":2001,
                    "src":"../../images/3.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-2.jpg",
                    "support":1289
                },
                {
                    "objId":5001,
                    "src":"../../images/1.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-1.jpg",
                    "support":1289
                },
                {
                    "objId":1001,
                    "src":"../../images/2.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-3.jpg",
                    "support":1289
                },
                {
                    "objId":6001,
                    "src":"../../images/4.jpg",
                    "text":"江南西藏着这样一家情调小餐吧",
                    "smallImg":"../../images/small-5.jpg",
                    "support":1289
                }
    ],
    "searchContentCope":null,
    "searchResult":[]
};
Page({
    data:searchdetailData,
    onLoad:function(e){
        console.log(e.searchVal);//要搜索的内容
        this.setData({
            searchContentCope:this.data.searchContent
        });
    },
    formSubmit: function(e) {
       wx.showToast({
           "title":"搜索中。。。",
           "icon":"loading",
           "duration":2000
       })
    }
})